<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
    <title>Se connecter</title>
</h:head>
<h:body>
    <ui:include src="entete.xhtml"/>
    <h1>Se connecter</h1>
    <hr/>
    <h:form>
        <p:panelGrid columns="2">
            <p:outputLabel value="Nom"/>
            <p:inputText value="#{enseignantController.nom}" required="true"/>
            
            <p:outputLabel value="Prenom"/>
            <p:inputText value="#{enseignantController.prenom}" required="true"/>
            
            <p:outputLabel value="Mot de passe"/>
            <p:inputText value="#{enseignantController.pass}" type="password" required="true"/>
        </p:panelGrid>
        <br/>
        <p:commandButton value="Connexion" action="#{enseignantController.doLogin}" ajax="false"/>
    </h:form>
    <hr/>
</h:body>
</html>
